document.getElementById('loginForm').addEventListener('submit', function(e) {
    e.preventDefault();
    const username = document.getElementById('username').value;
    const password = document.getElementById('password').value;
    const message = document.getElementById('message');
    
    if(username === 'admin' && password === '123456') {
        message.style.color = 'green';
        message.textContent = '登录成功！';
    } else {
        message.textContent = '用户名或密码错误！';
    }
});